<?php
namespace Home\Controller;

use Think\Controller;
use Think\Verify;

class StartController extends Controller
{

    public function start()
    {
       
        return $this->display();
       
    }

   
    /*
     * 验证验证码是否正确
     * @param string $code 为用户输入的字符串
     * @param string $id 验证码标识 与 Index->Verify()->entry(1);中的“1”对应
     */
    function checkverify($code, $id = '1')
    {
        $verify = new Verify();
        return $verify->check($code, $id);
    }
  
}
